﻿using System.Data.Entity.ModelConfiguration;
using ZY.EntityFrameWork.Core.Model.Entity;


namespace ZY.EntityFrameWork.Core.Mapping.SQLServer
{
    class LendInfoMap: EntityTypeConfiguration<LendInfo>
    {
        public LendInfoMap()
        {
            ToTable("LendInfo").HasKey(q => q.Id);
            Property(m => m.ArvID).IsRequired();
            //HasRequired(q => q.ArchiveInfo);
            //HasOptional(q => q.ReturnInfo).WithRequired(q=>q.LendInfo);
        }
    }
}
